<?php $__env->startSection('extra_css'); ?>
    <title>Author : <?php echo e($author->name); ?></title>

    <meta name="keywords" content="<?php echo e($settings_seo->seo_keywords); ?>">
    <meta name="description" content="<?php echo e(\Illuminate\Support\Str::limit(trim(strip_tags($author->bio)),300)); ?>">

    <!--Twitter Card-->
    <meta property="twitter:card" content="summary"/>
    <meta property="twitter:site" content="<?php echo e($settings_social->twitter_handle); ?>"/>
    <meta property="twitter:title" content="Author : <?php echo e($author->name); ?>"/>
    <meta property="twitter:description" content="<?php echo e(\Illuminate\Support\Str::limit(trim(strip_tags($author->bio)),300)); ?>"/>
    <meta property="twitter:image" content="<?php echo e($author->avatar); ?>"/>
    <meta name="twitter:creator" content="<?php echo e($settings_social->twitter_handle); ?>">
    <meta property="twitter:url" content="<?php echo e($settings_general->site_url); ?>"/>

    <!--Og tags-->
    <meta property="og:site_name" content="<?php echo e($settings_general->site_title); ?>"/>
    <meta property="og:title" content="Author : <?php echo e($author->name); ?>"/>
    <meta property="og:description" content="<?php echo e(\Illuminate\Support\Str::limit(trim(strip_tags($author->bio)),300)); ?>"/>
    <meta property="og:type" content="article"/>
    <meta property="og:url" content="<?php echo e($settings_general->site_url); ?>"/>
    <meta property="og:image" content="<?php echo e($author->avatar); ?>"/>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="container main-wrapper">
        <div class="main-content mag-content clearfix" data-stickyparent>

            <div class="row blog-content">
                <div class="col-md-4" data-stickycolumn>
                    <aside class="sidebar">
                        <div class="widget author-widget">
                            <div class="author-thumb">
                                <a href="/author/<?php echo e($author->slug); ?>">
                                    <img alt="<?php echo e($author->name); ?>" src="<?php echo e($author->avatar); ?>" class="avatar">
                                </a>
                            </div>
                            <div class="author-meta">
                                <h3 class="author-title">
                                    <a href="/author/<?php echo e($author->slug); ?>"><?php echo e($author->name); ?></a>
                                </h3>

                                <p class="author-position"><?php echo e(ucfirst($author->group->name)); ?></p>

                                <p class="author-bio"><?php echo e($author->bio); ?></p>

                                <div class="author-page-contact">
                                    <?php if(strlen($author->email)>0): ?>
                                        <a href="mailto:<?php echo e($author->email); ?>"><i
                                                    class="fa fa-envelope fa-lg"
                                                    title="Email"></i></a>
                                    <?php endif; ?>
                                    <?php if(strlen($author->website_url)>0): ?>
                                        <a href="<?php echo e($author->website_url); ?>" target="_blank"><i
                                                    class="fa fa-globe fa-lg"
                                                    title="Website"></i></a>
                                    <?php endif; ?>

                                    <?php if(strlen($author->fb_url)>0): ?>
                                        <a href="<?php echo e($author->fb_url); ?>" target="_blank"><i
                                                    class="fa fa-facebook fa-lg"
                                                    title="Facebook"></i></a>
                                    <?php endif; ?>

                                    <?php if(strlen($author->twitter_url)>0): ?>
                                        <a href="<?php echo e($author->twitter_url); ?>" target="_blank"><i
                                                    class="fa fa-twitter fa-lg"
                                                    title="Twitter"></i></a>
                                    <?php endif; ?>

                                    <?php if(strlen($author->google_plus_url)>0): ?>
                                        <a href="<?php echo e($author->google_plus_url); ?>" rel="publisher"
                                           target="_blank"><i title="Google+"
                                                              class="fa fa-google-plus fa-lg"></i></a>
                                    <?php endif; ?>
                                </div>

                            </div>


                        </div>


                        <?php if(isset($ads[\App\Ads::TYPE_SIDEBAR][0])): ?>
                            <div class="widget adwidget">
                                <?php echo $ads[\App\Ads::TYPE_SIDEBAR][0]->code; ?>

                            </div>
                        <?php endif; ?>

                        <?php if(isset($ads[\App\Ads::TYPE_SIDEBAR][1])): ?>
                            <div class="widget adwidget">
                                <?php echo $ads[\App\Ads::TYPE_SIDEBAR][1]->code; ?>

                            </div>
                        <?php endif; ?>

                    </aside>
                </div>
                <div class="col-md-8">
                    <h3 class="block-title"><span>By <?php echo e($author->name); ?></span></h3>

                    <?php if(sizeof($posts) == 0): ?>
                        <h4>No posts found from this author - <?php echo e($author->name); ?></h4>

                        <?php if(!empty($ads[\App\Ads::TYPE_BETWEEN_AUTHOR_INDEX])): ?>
                            <div class="widget adwidget">
                                <?php echo $ads[\App\Ads::TYPE_BETWEEN_AUTHOR_INDEX]->code; ?>

                            </div>
                        <?php endif; ?>
                    <?php endif; ?>

                    <?php foreach($posts as $index => $post): ?>
                        <article class="simple-post simple-big clearfix">
                            <div class="simple-thumb">

                                <a href="/<?php echo e($post->slug); ?>">
                                    <img src="<?php echo e($post->featured_image); ?>" alt="">
                                </a>
                            </div>
                            <header>
                                <p class="simple-share">
                                    <a href="/category/<?php echo e($post->category->slug); ?>/<?php echo e($post->sub_category->slug); ?>"><?php echo e($post->sub_category->title); ?></a>
                                    /
                                    by <a href="/author/<?php echo e($author->slug); ?>"><?php echo e($author->name); ?></a> -
                                    <span><i class="fa fa-clock-o"></i> <?php echo e($post->created_at->diffForHumans()); ?></span>
                                </p>

                                <h3>
                                    <a href="/<?php echo e($post->slug); ?>"><?php echo e($post->title); ?></a>
                                </h3>

                                <p class="excerpt">
                                    <?php echo str_limit(strip_tags($post->description),300,'...'); ?>

                                </p>
                            </header>
                        </article>

                        <?php if($index == ceil((sizeof($posts)/2))): ?>
                            <?php if(!empty($ads[\App\Ads::TYPE_BETWEEN_AUTHOR_INDEX])): ?>
                                <div class="widget adwidget">
                                    <?php echo $ads[\App\Ads::TYPE_BETWEEN_AUTHOR_INDEX]->code; ?>

                                </div>
                            <?php endif; ?>
                        <?php endif; ?>

                    <?php endforeach; ?>

                    <div class="load-more">
                        <?php echo $posts->render(); ?>

                    </div>

                </div>

            </div>

        </div>

    </div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>